using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Public_RegisterNewUser : System.Web.UI.UserControl
{
    public void ButtonCreateUser_Click(object sender, EventArgs e)
    {
        SajtLibrary.SajtClasses.User user = new SajtLibrary.SajtClasses.User(TextBox1.Text, TextBox2.Text);
        user.createUser();
        LabelStatus.Text = "User created successfully!";
        clear();
    }

    public void clear()
    {
        TextBox1.Text = "";
        TextBox2.Text = "";
        TextBox3.Text = "";
        
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        LabelStatus.Text = String.Empty;
    }
}
